//
//  UserModel.h
//  SkyworthPalmExam
//
//  Created by Arvin Wang on 15/1/23.
//  Copyright (c) 2015年 Arvin Wang. All rights reserved.
//

#import "JSONModel.h"

typedef NS_ENUM(NSInteger,UserType) {
    UserTypeAgency = 1,
    UserTypeAreaCharge,
    UserTypeAreaManner,
    UserTypeProvenceManner
};

@interface UserModel : JSONModel

@property(nonatomic,strong)NSString <Optional> *id;
@property(nonatomic,strong)NSString <Optional> *isNewRecord;
@property(nonatomic,strong)NSString <Optional> *remarks;
@property(nonatomic,strong)NSString <Optional> *realName;

@property(nonatomic,strong)NSString <Optional> *createDate;
@property(nonatomic,strong)NSString <Optional> *areaName;

@property(nonatomic,strong)NSString <Optional> *updateDate;
@property(nonatomic,strong)NSString <Optional> *loginName;
@property(nonatomic,strong)NSString <Optional> *userName;
@property(nonatomic,strong)NSString <Optional> *userPassword;
@property(nonatomic,strong)NSString <Optional> *userType;
@property(nonatomic,strong)NSString <Optional> *loginFlag;

@property(nonatomic,strong)NSString <Optional> *isCertification;

@property(nonatomic,strong)NSString <Optional> *isInit;
@property (nonatomic, copy) NSString<Optional> *signCode;

- (BOOL)deleteUser;

- (BOOL)save;

+ (id)getUser;

//更新本地库存初始化状态
- (void)updateInventoryInit;

//更新本地个人信息认证状态
- (void)updateUserCertification;

@end

